﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Runtime.Serialization;
using System.Text;

namespace Model
{
    [DataContract]
    public class TaxiInfo
    {

        /// <summary>
        /// ID
        /// </summary>
        [DataMember]
        public int Id { get; set; }

        /// <summary>
        /// the car GPS informationg-- Longitude
        /// </summary>
        [DataMember]
        public double Longitude { get; set; }

        /// <summary>
        /// the car GPS informationg-- Latitude
        /// </summary>
        [DataMember]
        public double Latitude { get; set; }

        /// <summary>
        ///  Driver Phone Number 
        /// </summary>
        [DataMember]
        public string DriverPhoneNumber { get; set; }

        [DataMember]
        public int CompanyId { get; set; }

        [DataMember]
        public string CompanyName { get; set; }

        /// <summary>
        ///  Driver Name 
        /// </summary>
        [DataMember]
        public string DriverName { get; set; }

        /// <summary>
        ///  TaxiState  0---empty 1---carry passengers 2--make an appointment 3-- give an alarm 4----change shifts
        /// </summary>
        [DataMember]
        public byte TaxiState { get; set; }

        /// <summary>
        ///  Taxi IpAddress 
        /// </summary>
        [DataMember]
        public IPAddress Ip { get; set; }

        /// <summary>
        ///  Taxi IpAddress 
        /// </summary>.
        [DataMember]
        public string TaxiNo { get; set; }

        /// <summary>
        ///  Taxi Infomation  for example  Peugeot、Citroen And color
        /// </summary>
        [DataMember]
        public string TaxiType { get; set; }

        /// <summary>
        ///  Taxi Infomation  UpdateTime
        /// </summary>
        [DataMember]
        public DateTime UpdateTime { get; set; }

        /// <summary>
        ///  StartLevel
        /// </summary>
        [DataMember]
        public int StartLevel { get; set; }

        /// <summary>
        ///  Remark
        /// </summary>
        [DataMember]
        public string Remark { get; set; }

        [DataMember]
        public int TaxiGroupId { get; set; }

        [DataMember]
        public int AlarmL { get; set; }

        [DataMember]
        public int Version { get; set; }

        [DataMember]
        public short Angle { get; set; }

        [DataMember]
        public byte Speed { get; set; }

        [DataMember]
        public byte IsCalling { get; set; }

        [DataMember]
        public int ServerId { get; set; }



        //超速、超时停车、疲劳驾驶
        [DataMember]
        public int SpeedOut { get; set; }

        [DataMember]
        public int SpeedOutIsOpen { get; set; }

        [DataMember]
        public int StopOutTime { get; set; }

        [DataMember]
        public int StopOutIsOpen { get; set; }

        [DataMember]
        public int FatigueDravingTime { get; set; }

        [DataMember]
        public int FatigueDravingIsOpen { get; set; }

        /// <summary>
        /// 车辆类型 1为出租车 2为租赁车 3为私家车
        /// </summary>
        [DataMember]
        public int CarType { get; set; }

        [DataMember]
        public string Signature { get; set; }

        [DataMember]
        public int GpsCount { get; set; }

        [DataMember]
        public string PassengerPhoneNumber { get; set; }

        [DataMember]
        public int DestinationId { get; set; }

        [DataMember]
        public DateTime PassengerTime { get; set; }

        [DataMember]
        public int CarDeviceType { get; set; }

    }
}
